home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 59338 / 59338.xpi / chrome / global / splitter.css < prev    next >
Cascading Style Sheet File  |  2010-02-03  |  5KB  |  138 lines

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3.  *
  4.  * The contents of this file are subject to the Mozilla Public License Version
  5.  * 1.1 (the "License"); you may not use this file except in compliance with
  6.  * the License. You may obtain a copy of the License at
  7.  * http://www.mozilla.org/MPL/
  8.  *
  9.  * Software distributed under the License is distributed on an "AS IS" basis,
  10.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11.  * for the specific language governing rights and limitations under the
  12.  * License.
  13.  *
  14.  * The Original Code is Mozilla Communicator client code, released
  15.  * March 31, 1998.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications Corporation.
  19.  * Portions created by the Initial Developer are Copyright (C) 1998-2001
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *   Joe Hewitt (hewitt@netscape.com)
  24.  *
  25.  * Alternatively, the contents of this file may be used under the terms of
  26.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  27.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.  * in which case the provisions of the GPL or the LGPL are applicable instead
  29.  * of those above. If you wish to allow use of your version of this file only
  30.  * under the terms of either the GPL or the LGPL, and not to allow others to
  31.  * use your version of this file under the terms of the MPL, indicate your
  32.  * decision by deleting the provisions above and replace them with the notice
  33.  * and other provisions required by the GPL or the LGPL. If you do not delete
  34.  * the provisions above, a recipient may use your version of this file under
  35.  * the terms of any one of the MPL, the GPL or the LGPL.
  36.  *
  37.  * ***** END LICENSE BLOCK ***** */
  38.  
  39. /* ===== splitter.css ===================================================
  40.   == Styles used by the XUL splitter element.
  41.   ======================================================================= */
  42.  
  43. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  44.  
  45. /* ::::: splitter (vertical) ::::: */
  46.  
  47. splitter {
  48.   -moz-box-align: center;
  49.   -moz-box-pack: center;
  50.   cursor: ew-resize;
  51.   border-width: 0 3px;
  52.   border-style: solid;
  53.   -moz-border-left-colors: transparent;
  54.   -moz-border-right-colors: #e7e6e6 #bab8b6 #eeeeed;
  55.   min-width: 6px;
  56. width:8px;
  57. background: transparent url("chrome://browser/skin/icons/gripper.png") no-repeat center center !important;
  58. /* background-repeat:repeat-x; */
  59. /* background-position:bottom; */
  60. /*   background-image: #E2E1E0; */
  61. }
  62.  
  63. /* ::::: splitter (horizontal) ::::: */
  64.  
  65. splitter[orient="vertical"] {
  66.   cursor: ns-resize;
  67. /*  border-width: 2px 0;*/
  68. /*  -moz-border-top-colors: #000000 #000000;
  69.   -moz-border-bottom-colors: #000000 #000000;*/
  70.   min-height: 6px;
  71. }
  72.  
  73. /* ::::: splitter grippy ::::: */
  74.  
  75. grippy {
  76.   cursor: pointer;
  77.  /* border-top: 1px solid #000000;
  78.   border-bottom: 1px solid #000000;*/
  79.   min-width: 4px;
  80.   min-height: 115px;
  81.   background-color: transparent;
  82.   background-repeat: no-repeat;
  83. }
  84.  
  85. grippy:hover {
  86.   background-color: #CCCCFF;
  87. }
  88.  
  89. splitter[orient="vertical"] > grippy {
  90.   border-top: none;
  91. /*   border-right: 1px solid #000000; */
  92.   border-bottom: none;
  93. /*   border-left: 1px solid #000000; */
  94.   min-width: 115px;
  95.   min-height: 4px;
  96. }
  97.   
  98. /* ..... normal state ..... */
  99.  
  100. /* vertical grippies */
  101. splitter[collapse="before"] > grippy {
  102.   background-image: url("chrome://global/skin/splitter/grip-vrt-before.gif");
  103. }sidebar
  104.  
  105. splitter[collapse="after"] > grippy {
  106.   background-image: url("chrome://global/skin/splitter/grip-vrt-after.gif");
  107. }
  108.  
  109. /* horizontal grippies */
  110. splitter[collapse="before"][orient="vertical"] > grippy {
  111.   background-image: url("chrome://global/skin/splitter/grip-hrz-before.gif");
  112. }  
  113.  
  114. splitter[collapse="after"][orient="vertical"] > grippy {
  115.   background-image: url("chrome://global/skin/splitter/grip-hrz-after.gif");
  116. }  
  117.   
  118. /* ..... collapsed state ..... */
  119.  
  120. /* vertical grippies */
  121. splitter[collapse="before"][state="collapsed"] > grippy {
  122.   background-image: url("chrome://global/skin/splitter/grip-vrt-after.gif");
  123. }
  124.  
  125. splitter[collapse="after"][state="collapsed"] > grippy {
  126.   background-image: url("chrome://global/skin/splitter/grip-vrt-before.gif");
  127. }
  128.  
  129. /* horizontal grippies */
  130. splitter[collapse="before"][state="collapsed"][orient="vertical"] > grippy {
  131.   background-image: url("chrome://global/skin/splitter/grip-hrz-after.gif");
  132. }  
  133.  
  134. splitter[collapse="after"][state="collapsed"][orient="vertical"] > grippy {
  135.   background-image: url("chrome://global/skin/splitter/grip-hrz-before.gif");
  136. }  
  137.  
  138.